//根地址

import http from "./http";

// export const HOST = 'http://localhost:8080/api';
// export const HOST = 'https://autumnfish.cn';
export const HOST = 'https://api.mtnhao.com/';

//获取轮播图图片
export const banner = '/banner';

//获取推荐列表
export const recommend_list = '/personalized'

//获取歌单列表
export const singer_list='/artist/list'

//获取推荐详细
export const song_detail='/playlist/detail'

//获取排行榜信息
export const rank_list='/toplist/detail'

//获取歌手单曲列表
export const singer_music='/artists'

//获取歌词
export const song_lyric='/lyric'

//验证音乐是否可播放
export const check_music='/check/music'

//获取热门搜索信息
export const hot_search_info='/search/hot'

// 获取搜索音乐信息
export const search_music='/search'

// 通过id获取歌曲列表
export const search_detail='/song/detail'

//登录
export const loginApi=(params)=>http.get('/login/cellphone',params)

//退出登录(不知道有啥用,直接清除cookie不就退出登录了吗)
// export const logoutApi=()=>http.get('/logout')

//获取用户登录状态
export const getLogStatus=()=>http.get('/login/status')

//获取用户信息
export const getUserInfo=()=>http.get('/user/account')

//获取用户详情
export const getUserDetail=(uid)=>http.get('/user/detail?uid='+uid)

//获取用户歌单信息
export const getUserSong=(uid)=>http.get('/user/playlist?uid='+uid)

//获取用户播放记录
export const getPlayRecord=(uid)=>http.get('/user/record?uid='+uid)

//喜欢音乐(接口废了)
// export const likeMusic=(id)=>http.get('/like?id=347230')

//获取用户喜欢歌曲列表
export const getLikeList=(uid)=>http.get('/likelist?uid'+uid)


//获取mv
export const getMv=(id='5436712')=>http.get('/mv/url?id='+id)
